<?php
namespace Home\Controller;
use Think\Controller;
class AddController extends Controller {
    public function add(){
		$info = I('get.');
		//print_r($info);
		$this->assign('row', $info);
		$this->display();
    }
	
	public function addDo(){
		$info = I('post.');
		//print_r($info);
		$info['path'] .= $info['pid'] . ',';
		//echo $info['path'];
		$model = M('type');
		$model->create($info);
		$model->add();
		$this->success("添加成功!",U("Home/Index/index"),3);
	}
}